﻿using DFGK_WMS.Model.DTO;
using DFGK_WMS.Model.Models;
using DFGK_WMS.Model.NoNet;
using Microsoft.EntityFrameworkCore;

namespace DFGK_WMS.Context
{
    public class DFGK_DB:DbContext
    {
        public DFGK_DB(DbContextOptions<DFGK_DB> options) :base(options) { }

        public  DbSet<TAction> TActions { get; set; }

        public  DbSet<TAuditRecord> TAuditRecords { get; set; }
        public  DbSet<TBarCodeRule> TBarCodeRules { get; set; }
        public  DbSet<TCachePort> TCachePorts { get; set; }
        public  DbSet<TCell> TCells { get; set; }

        public  DbSet<TCustomer> TCustomers { get; set; }
        public  DbSet<TDepartment> TDepartments { get; set; }

        public  DbSet<TDevice> TDevices { get; set; }
        public  DbSet<TDictItem> TDictItems { get; set; }
        public  DbSet<TDictType> TDictTypes { get; set; }
        public  DbSet<TDisasterLevel> TDisasterLevels { get; set; }
        public  DbSet<TDisasterMaterial> TDisasterMaterials { get; set; }
        public  DbSet<TErrorLog> TErrorLogs { get; set; }
        public  DbSet<TInstruct> TInstructs { get; set; }
        public  DbSet<TInterfaceLog> TInterfaceLogs { get; set; }
        public  DbSet<TInventory> TInventories { get; set; }
        public  DbSet<TInventoryAdjust> TInventoryAdjusts { get; set; }
        public  DbSet<TInventoryDetail> TInventoryDetails { get; set; }
        public  DbSet<TInventoryLog> TInventoryLogs { get; set; }
        public  DbSet<TInventoryPallet> TInventoryPallets { get; set; }
        public  DbSet<TLog> TLogs { get; set; }
        public  DbSet<TMaterial> TMaterials { get; set; }
        public  DbSet<TMaterialBarcode> TMaterialBarcodes { get; set; }
        public  DbSet<TMaterialCategory> TMaterialCategories { get; set; }

        public  DbSet<TMaterialGroup> TMaterialGroups { get; set; }

        public  DbSet<TMaterialWiki> TMaterialWikis { get; set; }
        public  DbSet<TMaterialWikiFile> TMaterialWikiFiles { get; set; }
        public  DbSet<TMenu> TMenus { get; set; }
        public  DbSet<TMenuAction> TMenuActions { get; set; }
        public  DbSet<TMultPallet> TMultPallets { get; set; }

        public  DbSet<TPackageDetail> TPackageDetails { get; set; }
        public  DbSet<TPallet> TPallets { get; set; }
        public  DbSet<TPalletMoveRecord> TPalletMoveRecords { get; set; }
        public  DbSet<TPath> TPaths { get; set; }
        public  DbSet<TPickingOrder> TPickingOrders { get; set; }
        public  DbSet<TPickingOrderDetail> TPickingOrderDetails { get; set; }
        public  DbSet<TPickingStationDataDetail> TPickingStationDataDetails { get; set; }
        public  DbSet<TPickingStationDatum> TPickingStationData { get; set; }
        public  DbSet<TPlatform> TPlatforms { get; set; }
        public  DbSet<TPlatformSet> TPlatformSets { get; set; }
        public  DbSet<TPutawayOrder> TPutawayOrders { get; set; }
        public  DbSet<TPutawayOrderDetail> TPutawayOrderDetails { get; set; }

        public  DbSet<TReceivingGoodsDetail> TReceivingGoodsDetails { get; set; }
        public  DbSet<TReceivingOrderDetail> TReceivingOrderDetails { get; set; }
        public  DbSet<TRole> TRoles { get; set; }
        public  DbSet<TRoleMenuAction> TRoleMenuActions { get; set; }
        public  DbSet<TRoleWarehouse> TRoleWarehouses { get; set; }
        public  DbSet<TScannedPackageDetail> TScannedPackageDetails { get; set; }
        public  DbSet<TScheduledTask> TScheduledTasks { get; set; }
        public  DbSet<TShelf> TShelves { get; set; }
        public  DbSet<TShippingGoodsDetail> TShippingGoodsDetails { get; set; }
        public  DbSet<TShippingLockCell> TShippingLockCells { get; set; }
        public  DbSet<TShippingOrderDetail> TShippingOrderDetails { get; set; }
        public  DbSet<TStackingStorage> TStackingStorages { get; set; }

        public  DbSet<TStationDatum> TStationData { get; set; }
        public  DbSet<TStationRouteway> TStationRouteways { get; set; }
        public  DbSet<TStocktakeGoodsDetail> TStocktakeGoodsDetails { get; set; }
        public  DbSet<TStocktakeResultGoodsDetail> TStocktakeResultGoodsDetails { get; set; }
        public  DbSet<TStocktakeResultRecord> TStocktakeResultRecords { get; set; }
        public  DbSet<TStocktakingOrder> TStocktakingOrders { get; set; }
        public  DbSet<TStocktakingOrderDetail> TStocktakingOrderDetails { get; set; }
        public  DbSet<TStocktakingPlan> TStocktakingPlans { get; set; }
        public  DbSet<TStocktakingStrategy> TStocktakingStrategies { get; set; }
        public  DbSet<TStrategy> TStrategies { get; set; }
        public  DbSet<TSupplier> TSuppliers { get; set; }
        public  DbSet<TTransferBinGoodsDetail> TTransferBinGoodsDetails { get; set; }
        public  DbSet<TTransferBinOrder> TTransferBinOrders { get; set; }
        public  DbSet<TTransferBinOrderDetail> TTransferBinOrderDetails { get; set; }
        public  DbSet<TUnitConvertFigre> TUnitConvertFigres { get; set; }
        public  DbSet<TUnstackDatum> TUnstackData { get; set; }
        public  DbSet<TUser> TUsers { get; set; }
        public  DbSet<TUserRole> TUserRoles { get; set; }
        public  DbSet<TWarehouse> TWarehouses { get; set; }
        public  DbSet<TWaveOrder> TWaveOrders { get; set; }
        public  DbSet<TWorkDocument> TWorkDocuments { get; set; }
        public DbSet<TInventoryLog> TInventoryLog { get; set; }
        public DbSet<TInventoryAdjust> TInventoryAdjust { get; set; }
        public DbSet<TAuditRecord> TAuditRecord { get; set; }
        public DbSet<TMaterial> TMaterial { get; set; }
        public DbSet<TInventory> TInventory { get; set; }
    }

    public class SqliteContext : DbContext
    {
        public DbSet<Dfgk> Dfgk { get; set; }

        public SqliteContext(DbContextOptions<SqliteContext> options) : base(options)
        {
        }
    }
}